/**
 * 
 */
package lobby.web.zconfigurer;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

import com.alibaba.dubbo.config.ApplicationConfig;
import com.alibaba.dubbo.config.RegistryConfig;

/**
 * @author Eric
 */
@Configuration
@ImportResource("classpath:dubbo-reference.xml")
public class DubboReferenceConfigurer {
	@Bean
    public ApplicationConfig appConfig() {
        ApplicationConfig app = new ApplicationConfig();
        app.setName("user-web");
        return app;
    }


    @Bean
    public RegistryConfig registryConfig() {
        RegistryConfig registryConfig = new RegistryConfig();
        registryConfig.setAddress("zookeeper://zookeeper:2181");
        return registryConfig;
    }
}
